/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const testRouter = {
  path: '/test',
  component: Layout,
  redirect: '/test/index',
  name: 'Test',
  meta: {
    title: '测试',
    icon: '',
    roles: ['admin', 'editor']
  },
  children: [
    {
      path: 'index',
      component: () => import('@/views/test/index'),
      name: 'Index',
      meta: { title: '测试路由' }
    },
    {
      path: 'list',
      component: () => import('@/views/test/list'),
      name: 'List',
      meta: { roles: ['admin'], title: '列表' }
    },
    {
      path: 'form',
      component: () => import('@/views/test/form'),
      name: 'Form',
      hidden: true,
      meta: { roles: ['editor'], title: '表单' }
    },
    {
      path: 'tinymce',
      component: () => import('@/views/test/tinymce'),
      name: 'TinymceDemo',
      meta: { title: 'tinymce富文本' }
    }
  ]
}
export default testRouter
